package m3d31;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

//字符缓冲输出流 继承了Writer
public class jBufferedWriter {
    public static void main(String[] args) throws IOException {
        BufferedWriter bw = new BufferedWriter(new FileWriter("day02\\src\\m3d31\\b.txt"));

        bw.write("传递东西了");
        //在不同的系统中统一换行
        bw.newLine();
        bw.write("传递东西了");

        bw.flush();
        bw.close();
    }
}
